/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PnlCheckProduct.java
 *
 * Created on 22 ม.ค. 2553, 16:22:20
 */

package warehouse;

/**
 *
 * @author Administrator
 */
public class PnlListCheckProduct extends javax.swing.JPanel {

    /** Creates new form PnlCheckProduct */
    public PnlListCheckProduct() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlHeadListCheck = new javax.swing.JPanel();
        lblHeadListCheck = new javax.swing.JLabel();
        btnCheckPrint = new javax.swing.JButton();
        btnCheckEdit = new javax.swing.JButton();
        btnCheckDel = new javax.swing.JButton();
        btnCheckAdd = new javax.swing.JButton();
        btnCheckSearch = new javax.swing.JButton();
        pnlListCheck = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblCheckProduct = new javax.swing.JTable();
        lblCheckWeek = new javax.swing.JLabel();
        lblReCode = new javax.swing.JLabel();
        txtReCode = new javax.swing.JTextField();
        txtDBCode = new javax.swing.JTextField();
        lblDBCode = new javax.swing.JLabel();
        lblRPCode = new javax.swing.JLabel();
        txtRPCode = new javax.swing.JTextField();
        cbbCheckMount = new javax.swing.JComboBox();
        lblCheckYear = new javax.swing.JLabel();
        cbbCheckWeek = new javax.swing.JComboBox();
        lblCheckMount1 = new javax.swing.JLabel();
        txtDBCode1 = new javax.swing.JTextField();
        lblDTCode = new javax.swing.JLabel();
        cmbDTCode = new javax.swing.JComboBox();

        setMaximumSize(new java.awt.Dimension(700, 500));
        setMinimumSize(new java.awt.Dimension(700, 500));
        setPreferredSize(new java.awt.Dimension(700, 500));
        setLayout(new java.awt.BorderLayout());

        pnlHeadListCheck.setBackground(new java.awt.Color(204, 255, 204));
        pnlHeadListCheck.setMaximumSize(new java.awt.Dimension(700, 80));
        pnlHeadListCheck.setMinimumSize(new java.awt.Dimension(700, 80));
        pnlHeadListCheck.setPreferredSize(new java.awt.Dimension(700, 80));

        lblHeadListCheck.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblHeadListCheck.setText("ตรวจสอบสินค้า");

        btnCheckPrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/print_30x30.gif"))); // NOI18N
        btnCheckPrint.setMaximumSize(new java.awt.Dimension(40, 40));
        btnCheckPrint.setMinimumSize(new java.awt.Dimension(40, 40));
        btnCheckPrint.setPreferredSize(new java.awt.Dimension(40, 40));

        btnCheckEdit.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnCheckEdit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/edit1_30x30.gif"))); // NOI18N
        btnCheckEdit.setMaximumSize(new java.awt.Dimension(75, 30));
        btnCheckEdit.setMinimumSize(new java.awt.Dimension(75, 30));
        btnCheckEdit.setPreferredSize(new java.awt.Dimension(75, 30));

        btnCheckDel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/del_30x30.gif"))); // NOI18N

        btnCheckAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/add_30x30.gif"))); // NOI18N

        btnCheckSearch.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/search_30x30.gif"))); // NOI18N

        javax.swing.GroupLayout pnlHeadListCheckLayout = new javax.swing.GroupLayout(pnlHeadListCheck);
        pnlHeadListCheck.setLayout(pnlHeadListCheckLayout);
        pnlHeadListCheckLayout.setHorizontalGroup(
            pnlHeadListCheckLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadListCheckLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlHeadListCheckLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlHeadListCheckLayout.createSequentialGroup()
                        .addComponent(btnCheckSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnCheckAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnCheckDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnCheckEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(btnCheckPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(lblHeadListCheck))
                .addContainerGap(440, Short.MAX_VALUE))
        );
        pnlHeadListCheckLayout.setVerticalGroup(
            pnlHeadListCheckLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlHeadListCheckLayout.createSequentialGroup()
                .addContainerGap(11, Short.MAX_VALUE)
                .addGroup(pnlHeadListCheckLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(btnCheckPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pnlHeadListCheckLayout.createSequentialGroup()
                        .addComponent(lblHeadListCheck)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlHeadListCheckLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(btnCheckEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnCheckSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnCheckAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnCheckDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap())
        );

        add(pnlHeadListCheck, java.awt.BorderLayout.PAGE_START);

        tblCheckProduct.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        tblCheckProduct.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null}
            },
            new String [] {
                "รหัสสินค้า", "รายการสินค้า", "จำนวนสินค้า", "ราคา/หน่วย", "หน่วย", "จำนวนคงเหลือ"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.Float.class, java.lang.String.class, java.lang.Integer.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(tblCheckProduct);

        lblCheckWeek.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblCheckWeek.setText("สัปดาห์ที่ :");

        lblReCode.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblReCode.setText("รหัสการรับสินค้า :");

        txtReCode.setFont(new java.awt.Font("Tahoma", 0, 12));

        txtDBCode.setFont(new java.awt.Font("Tahoma", 0, 12));

        lblDBCode.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblDBCode.setText("รหัสการเบิกสินค้า :");

        lblRPCode.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblRPCode.setText("รหัสการคืนสินค้า :");

        txtRPCode.setFont(new java.awt.Font("Tahoma", 0, 12));

        cbbCheckMount.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        cbbCheckMount.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฏาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม" }));

        lblCheckYear.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblCheckYear.setText("ปี :");

        cbbCheckWeek.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        cbbCheckWeek.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5" }));

        lblCheckMount1.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblCheckMount1.setText("เดือน :");

        txtDBCode1.setFont(new java.awt.Font("Tahoma", 0, 12));

        lblDTCode.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblDTCode.setText("ประเภทสินค้า :");

        cmbDTCode.setFont(new java.awt.Font("Tahoma", 0, 12));

        javax.swing.GroupLayout pnlListCheckLayout = new javax.swing.GroupLayout(pnlListCheck);
        pnlListCheck.setLayout(pnlListCheckLayout);
        pnlListCheckLayout.setHorizontalGroup(
            pnlListCheckLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlListCheckLayout.createSequentialGroup()
                .addGroup(pnlListCheckLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(pnlListCheckLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(pnlListCheckLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(lblCheckWeek)
                            .addComponent(lblReCode)
                            .addComponent(lblRPCode))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlListCheckLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(pnlListCheckLayout.createSequentialGroup()
                                .addComponent(cbbCheckWeek, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(lblCheckMount1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(cbbCheckMount, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(lblCheckYear)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(txtDBCode1))
                            .addGroup(pnlListCheckLayout.createSequentialGroup()
                                .addGroup(pnlListCheckLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(txtReCode)
                                    .addComponent(txtRPCode, javax.swing.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addGroup(pnlListCheckLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(lblDTCode, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(lblDBCode, javax.swing.GroupLayout.Alignment.TRAILING))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(pnlListCheckLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(cmbDTCode, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(txtDBCode, javax.swing.GroupLayout.DEFAULT_SIZE, 133, Short.MAX_VALUE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE))))
                    .addGroup(pnlListCheckLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 680, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        pnlListCheckLayout.setVerticalGroup(
            pnlListCheckLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlListCheckLayout.createSequentialGroup()
                .addGap(14, 14, 14)
                .addGroup(pnlListCheckLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbbCheckMount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblCheckYear, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblCheckWeek, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblCheckMount1, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbCheckWeek, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtDBCode1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlListCheckLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlListCheckLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblReCode, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(txtReCode, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pnlListCheckLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblDBCode, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(txtDBCode, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlListCheckLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblRPCode, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtRPCode, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblDTCode, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cmbDTCode, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(146, 146, 146))
        );

        add(pnlListCheck, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnCheckAdd;
    private javax.swing.JButton btnCheckDel;
    private javax.swing.JButton btnCheckEdit;
    private javax.swing.JButton btnCheckPrint;
    private javax.swing.JButton btnCheckSearch;
    private javax.swing.JComboBox cbbCheckMount;
    private javax.swing.JComboBox cbbCheckWeek;
    private javax.swing.JComboBox cmbDTCode;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel lblCheckMount1;
    private javax.swing.JLabel lblCheckWeek;
    private javax.swing.JLabel lblCheckYear;
    private javax.swing.JLabel lblDBCode;
    private javax.swing.JLabel lblDTCode;
    private javax.swing.JLabel lblHeadListCheck;
    private javax.swing.JLabel lblRPCode;
    private javax.swing.JLabel lblReCode;
    private javax.swing.JPanel pnlHeadListCheck;
    private javax.swing.JPanel pnlListCheck;
    private javax.swing.JTable tblCheckProduct;
    private javax.swing.JTextField txtDBCode;
    private javax.swing.JTextField txtDBCode1;
    private javax.swing.JTextField txtRPCode;
    private javax.swing.JTextField txtReCode;
    // End of variables declaration//GEN-END:variables

}
